@import "./config.scss";

.m-login-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.36);

  .mask-center-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 640px;
    background-color: #fff;
    box-shadow: 0px 8px 30px 0px rgba(0, 0, 0, 0.45);

    .box-left,
    .box-right {
      float: left;
      width: 500px;
      height: 100%;
      vertical-align: top;
    }

    .box-left {
      background-image: linear-gradient(30deg, #1d2747 0%, #375e75 100%);

      .title {
        font-size: 32px;
        color: #fff;
        padding: 80px 0 0 80px;
      }

      .line {
        width: 30px;
        height: 8px;
        background-color: #36cfc9;
        margin-left: 80px;
        margin-top: 10px;
      }

      .login-img {
        display: block;
        width: 233px;
        margin: 80px auto 0;
      }

      .register-img {
        display: block;
        width: 290px;
        margin: 45px auto 0;
      }
    }

    .box-right {
      position: relative;
      .logo {
        display: block;
        width: 236px;
        margin: 80px auto 40px;
      }
      .close {
        position: absolute;
        right: 0;
        top: 0;
        width: 40px;
        height: 40px;
        background-color: #e9eefb;
        text-align: center;
        line-height: 40px;
        cursor: pointer;
        img {
          width: 14px;
        }
      }

      .input-item {
        width: 380px;
        margin: 13px auto 0;

        .label {
          font-size: 18px;
          color: #333;
        }
        input {
          display: block;
          width: 380px;
          height: 45px;
          border: 1px solid #bbb;
          outline: 0;
          padding-left: 20px;
          margin-top: 4px;
          font-size: 18px;
        }
        input::-webkit-input-placeholder {
          color: #bbb;
        }
        input::-moz-placeholder {
          color: #bbb;
        }
        input:-moz-placeholder {
          color: #bbb;
        }
        input:-ms-input-placeholder {
          color: #bbb;
        }

        .error-info {
          font-size: 12px;
          color: #f5222d;
          margin-top: 10px;
        }
      }

      // 记住密码
      .checkbox {
        width: 380px;
        margin: 10px auto 0;
        text-align: right;

        label {
          cursor: pointer;
        }

        input[type="checkbox"] {
          display: none;
        }

        .icon-check {
          position: relative;
          display: inline-block;
          vertical-align: middle;
          width: 16px;
          height: 16px;
          margin-left: 4px;
          border-radius: 2px;
          border: solid 1px #9cafc3;
          &:after {
            transform: rotate(45deg) scale(0);
            position: absolute;
            left: 4.57142857px;
            top: 1.14285714px;
            display: table;
            width: 5.71428571px;
            height: 9.14285714px;
            border: 2px solid #fff;
            border-top: 0;
            border-left: 0;
            content: " ";
            transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6),
              opacity 0.1s;
            opacity: 0;
          }
        }

        span {
          font-size: 14px;
          color: #333;
          a {
            color: $defaultColor;
            text-decoration: none;
          }
        }

        input[type="checkbox"]:checked + .icon-check {
          background-color: $defaultColor;
          border-color: $defaultColor;
          &:after {
            transform: rotate(45deg) scale(1);
            opacity: 1;
          }
        }
      }

      // 登录按钮
      .button_login {
        display: block;
        width: 380px;
        height: 44px;
        margin: 43px auto 0;
        background-color: $defaultColor;
        color: #fff;
        font-size: 20px;
        letter-spacing: 2px;
        outline: 0;
        border: 0;
        cursor: pointer;
        transition: all ease 600ms;
        &:active {
          opacity: 0.8;
        }
      }

      // 注册按钮
      .button_register:disabled {
        color: rgba(0, 0, 0, 0.25);
        background-color: #f5f5f5;
        border: 1px solid #d9d9d9;
        cursor: not-allowed;
      }

      .to_register {
        text-align: center;
        font-size: 12px;
        color: #333;
        margin-top: 30px;

        span {
          color: $defaultColor;
          cursor: pointer;
        }
      }
    }
  }
}
